﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Script.Serialization;

namespace ASPNETPerformance.App_BusinessLogic.Extensions {
    public static class JsonExtensions {
        public static string ToJson( this object obj ) {
            var serializer = new JavaScriptSerializer();
            return serializer.Serialize( obj );
        }
    }
}